package com.bugbuff.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.joda.time.DateTime;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "logs")
public class Logs implements Serializable {



    @Id
    private ObjectId id;//自维护id
    private String type;
    private Long uid;//用户id
    private Long loginTime;//登录时间
    private Long logoutTime;//登出时间
    private String landingLocation;//登录地址
    private String device;//设备
}
